@model Decimal?
@{
    var descriptor = ViewData.ModelMetadata.GetViewDescriptor();
}
@Html.TextBox("", Model?.ToString("f2"), descriptor?.ToHtmlProperties())